/*
 * Copyright (C) 2016 Baidu, Inc. All Rights Reserved.
 */

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


import java.io.UnsupportedEncodingException;

/**
 * Created by wuyunfeng on 2016/5/27.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"file:../../web/WEB-INF/applicationContext.xml"})
// @Transactional(transactionManager = "txManager")
public class AbstractContextServiceTests extends AbstractTransactionalJUnit4SpringContextTests {

    private static Logger logger = LogManager.getLogger(AbstractContextServiceTests.class);

    @Before
    public void begin() {
        before();
    }

    @After
    public void end() throws UnsupportedEncodingException {
        after();
    }

    public void before() {
    }

    public void after() {
    }
}
